home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 374 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: deepthought.xyplex.com!milan
  2. From: milan@xyplex.com (Milan J. Merhar)
  3. Newsgroups: comp.arch,comp.lang.c
  4. Subject: Re: Did Microsoft decree a byte order?
  5. Date: Thu, 4 Jan 1996 17:00:20
  6. Organization: Xyplex Inc.
  7. Message-ID: <milan.271.0C1B5523@xyplex.com>
  8. References: <4c80dp$9du@hobbes.sco.COM> <DKIp84.9Az@calcite.rhyolite.com> <jgkDKMn2x.2KA@netcom.com> <DKMx16.E2M@calcite.rhyolite.com>
  9. NNTP-Posting-Host: deepthought.xyplex.com
  10. Keywords: byte
  11. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
  12.  
  13. The only common disk or tape format that I am aware of that is rigorously 
  14. byte-order-neutral is ISO9660, which goes to the extremes of recording 
  15. EVERY value TWICE (once each way), so that no reading application ever has to 
  16. do an order translation.
  17.  
  18. This only works because the format was intended for a read-only medium (even 
  19. though it is now used for read-mostly media too) so the overhead of 
  20. calculating reversed-order values at write time could be justified by a great
  21. simplification of read-time processing. (Note that the reading application 
  22. DISREGARDS the "inappropriate" data.)
  23.  
  24. Given this exception (and its rationale for existing), Vernon is correct 
  25. in stating that the best "real world" behavior is to pick a byte order and 
  26. live with it, even if some number of applications will need to do order 
  27. reversal.  Agonize over which way to go, calculate which way minimizes the 
  28. grief, but then freeze the result and live with it!
  29.  
  30.  
  31. Milan J. Merhar   milan@xyplex.com
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.